﻿<!--Passing in GadgetVM-->
<h3>Edit "{{GadgetVM.Gadget.Name}}"</h3>
<table class="table table-condensed">
    <tr>
        <td style="width:100px">Name:</td>
        <td><input type="text" ng-model="GadgetVM.Gadget.Name" /></td>
    </tr>
    <tr>
        <td>Price:</td>
        <td><input type="text" ng-model="GadgetVM.Gadget.Price" /></td>
    </tr>
    <tr>
        <td>Quantity: </td>
        <td><input type="number" class="span1" ng-model="GadgetVM.Gadget.Qty" min="0" /></td>
    </tr>
    <tr>
        <td>Main Picture:</td>
        <td><input type="text" ng-model="GadgetVM.Gadget.TopPict" /><br/>
            <img src="{{GadgetVM.Gadget.TopPict}}" style="height: 100px" />
        </td>
    </tr>
    <tr>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td>Product Type:</td>
        <td><select ng-model="GadgetVM.Gadget.ProductType">
    <option value="Weapon">Weapon</option>
    <option value="Disguise">Disguise</option>
    <option value="Surveillance">Surveilance</option>
</select></td>
    </tr>
    <tr>
        <td>Description: </td>
        <td><textarea>{{GadgetVM.Gadget.Descript}}</textarea></td>
    </tr>
    <tr>
        <td></td>
        <td><input type="button" value="Submit" ng-click="updateGadget()" /></td>
    </tr>
</table>
